﻿@{
    var domain = Newtouch.Core.Common.Utils.ConfigurationHelper.GetAppConfigValue("Document_Domain");
    if (!string.IsNullOrWhiteSpace(domain))
    {
        if (HttpContext.Current.Request.Url.AbsoluteUri.ToLower().IndexOf(domain.ToLower(), StringComparison.Ordinal) < 0)
        {
            domain = null;
        }
    }
}
@if (!string.IsNullOrWhiteSpace(domain))
{
    <script type="text/javascript">
        document.domain = '@(domain)';
    </script>
}